from sqlalchemy import Column,String,DateTime,Integer,ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship

Base = declarative_base()

class Article(Base):
    __tablename__ = 'article'
    id = Column(Integer,primary_key=True)
    title = Column(String)
    url = Column(String)
    content = Column(String)
    extend1 = Column(String)
    extend2 = Column(String)



class Image(Base):
    __tablename__ = 'image'
    id = Column(Integer,primary_key=True)
    article_id = Column(Integer)
    url = Column(String)
    path = Column(String)
    
